/*回顶部特效
---------------------------------------------------------------*/
/*回顶部功能
-------------------------------------------------------------------------*/
var oBackToTop = document.querySelector(".back-to-top");
//getScrollOffset().y
myAddEvent(window, 'scroll', function () {
    // console.log(getScrollOffset().y);
    if (getScrollOffset().y > 700) {
        //回到顶部导航栏显示
        oBackToTop.style.display = "block";
    } else {
        //隐藏
        oBackToTop.style.display = "none";
    }
})

var oBackToTopSecondItem = document.querySelector(".back-to-top-second-item");
var oAppDownloadImg = document.querySelector(".app-download-img");
myAddEvent(oBackToTopSecondItem, 'mouseover', function () {
    oAppDownloadImg.style.display = "block";
})
myAddEvent(oBackToTopSecondItem, 'mouseout', function () {
    oAppDownloadImg.style.display = "none";
})